pspnet_adhoc.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspnet_adhoc.h - PSP Adhoc networking libraries.
00007  *
00008  * Copyright (c) 2006 James F.
00009  *
00010  * Based on the adhoc code in SMS Plus
00011  * 
00012  * $Id: pspnet_adhoc.h 1836 2006-03-16 20:58:05Z tyranid $
00013  */
00014 #ifndef __PSPNET_ADHOC_H__
00015 #define __PSPNET_ADHOC_H__
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00026 int sceNetAdhocInit( void );
00027 
00033 int sceNetAdhocTerm( void );
00034 
00045 int sceNetAdhocPdpCreate(char *mac, int port, unsigned int unk2, int unk3);
00046 
00055 int sceNetAdhocPdpDelete(int id, int unk1); 
00056 
00070 int sceNetAdhocPdpSend(int id, char *destMacAddr, int16 port, void *data, unsigned int len, int unk6, int unk7);
00071 
00085 int sceNetAdhocPdpRecv(int id, char *srcMacAddr, int *port, void *data, void *dataLength, int unk6, int unk7);
00086 
00090 typedef struct pdpStatStruct
00091 {
00093         struct pdpStatStruct *next;
00095         int pdpId;
00097         char mac[6];
00099         int16 port;
00101         unsigned int rcvdData;
00102 } pdpStatStruct;
00103 
00112 int sceNetAdhocGetPdpStat(int *size,    
00113                                   pdpStatStruct *stat);
00114 
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 
00119 #endif

Generated on Tue Nov 21 11:46:03 2006 for pspsdk-1.0+beta2 by  doxygen 1.4.6